package name.fowler.refactoring.simplestore;

import name.fowler.refactoring.simplestore.strategy.ChildrenStrategy;

class MainClass {
	 static void Main(String[] args) {
		// Create movies
		Movie movCinderella = new Movie("Cinderella", new ChildrenStrategy());
		
		
		// Create customers
		
		Customer custMickeyMouse = new Customer("Mickey Mouse");

		// Create rentals
		Rental rental1 = new Rental(movCinderella, 5);

		// Assign rentals to customers
		custMickeyMouse.addRental(rental1);

		// Generate invoice
		String statement = custMickeyMouse.statement();

		// Print the statement
		System.out.println(statement);		
	}
}

